<?php get_header(); ?>

<div class="content-area">
    <main class="site-main">
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <article class="page">
                <div class="page-header">
                    <h1 class="page-title"><?php the_title(); ?></h1>
                </div>
                
                <div class="page-content">
                    <?php the_content(); ?>
                    
                    <?php
                    // 分页链接（如果内容使用了<!--nextpage-->标签）
                    wp_link_pages(array(
                        'before' => '<div class="page-links">' . __('Pages:', 'my-simple-theme'),
                        'after'  => '</div>',
                    ));
                    ?>
                </div>
                
                
            </article>
        <?php endwhile; endif; ?>
    </main>
    
    <?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>
